<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-productInfo-edit">
			<input id="productId" name="productId"
				th:value="${productInfo.productId}" type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">产品名称：</label>
				<div class="col-sm-8">
					<input id="productName" name="productName"
						th:value="${productInfo.productName}" class="form-control"
						type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品价格(元)：</label>
				<div class="col-sm-8">
					<input id="productPrice" name="productPrice" type="number"
						th:value="${productInfo.productPrice}" class="form-control">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">使用期限(月)：</label>
				<div class="col-sm-8">
					<input id="productTerm" name="productTerm" type="number"
						th:value="${productInfo.productTerm}" class="form-control">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品类型：</label>
				<div class="col-sm-8">
					<input id="typeIds" th:value="${productInfo.typeName}" class="form-control" type="hidden">
					<select class="form-control" name="typeId" id="typeId" 
						onchange="changeSelect()">
						<option th:value="${productInfo.typeId}"
							th:text="${productInfo.typeName}"
							selected="selected" disabled="disabled"></option>
						<option th:each="list : ${dictList}"
							th:value="${list.dictCode}" th:text="${list.dictLabel}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品品种：</label>
				<div class="col-sm-8">
					<input id="specIds" th:value="${productInfo.specName}" class="form-control" type="hidden">
					<select class="form-control" name="specId" id="specId">
						<option th:value="${productInfo.specId}"
							th:text="${productInfo.specName}"
							selected="selected" disabled="disabled"></option>
						<option th:each="list : ${list}"
							th:value="${list.specId}" th:text="${list.specName}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否上架：</label>
				<div class="col-sm-8">
					<div class="onoffswitch">
						<input type="checkbox"
							th:checked="${productInfo.isArrival == 1 ? true : false}"
							class="onoffswitch-checkbox" id="isArrival" name="isArrival">
						<label class="onoffswitch-label" for="isArrival"> <span
							class="onoffswitch-inner"></span> <span
							class="onoffswitch-switch"></span>
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-8 col-sm-offset-3">
					<button type="submit" class="btn btn-primary">提交</button>
				</div>
			</div>
	</div>
	</form>
	</div>
	<div th:include="include::footer"></div>
	<script src="/azxcrm/module/productInfo/edit.js"
		th:src="@{/azxcrm/module/productInfo/edit.js}">
		
	</script>
</body>
</html>
